package com.ruoyi.exam.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 测评试卷对象 t_exam_paper
 *
 * @author Bandit
 * @date 2022-11-01
 */
public class TExamPaper extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 试卷主键 */
    private Long id;

    /** 试卷标题 */
    @Excel(name = "试卷标题")
    private String title;

    /** 试题数量 */
    @Excel(name = "试题数量")
    private Long questionCount;

    /** 试卷开始时间 */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "试卷开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date startTime;

    /** 试卷结束时间 */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "试卷结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date endTime;

    /** 试卷内容关联id */
    @Excel(name = "试卷内容关联id")
    private Long contentId;

    /** 创建者 */
    @Excel(name = "创建者")
    private Long createdBy;

    /** 删除标志 */
    @Excel(name = "删除标志")
    private Long deleteFlag;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setQuestionCount(Long questionCount)
    {
        this.questionCount = questionCount;
    }

    public Long getQuestionCount()
    {
        return questionCount;
    }
    public void setStartTime(Date startTime)
    {
        this.startTime = startTime;
    }

    public Date getStartTime()
    {
        return startTime;
    }
    public void setEndTime(Date endTime)
    {
        this.endTime = endTime;
    }

    public Date getEndTime()
    {
        return endTime;
    }
    public void setContentId(Long contentId)
    {
        this.contentId = contentId;
    }

    public Long getContentId()
    {
        return contentId;
    }
    public void setCreatedBy(Long createdBy)
    {
        this.createdBy = createdBy;
    }

    public Long getCreatedBy()
    {
        return createdBy;
    }
    public void setDeleteFlag(Long deleteFlag)
    {
        this.deleteFlag = deleteFlag;
    }

    public Long getDeleteFlag()
    {
        return deleteFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("questionCount", getQuestionCount())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("contentId", getContentId())
            .append("createdBy", getCreatedBy())
            .append("createTime", getCreateTime())
            .append("deleteFlag", getDeleteFlag())
            .toString();
    }
}
